<?

/* ShopController controller class.
 * This class contains the handling code, divided into action methods.
 *
 */ 
class ShopController extends AGController
{
  function __construct($ctrName) 
  {
    parent::__construct($ctrName);
    $this->invokeModel();
  }

  function Index()
  {
    $this->pageTitle = 'Ye Olde Shoppe';
    if (isset($_REQUEST['sell']))
      $this->message = $this->model->sellItem($_REQUEST['sell'], $this->character);
    if (isset($_REQUEST['buy']))
      $this->message = $this->model->buyItem($_REQUEST['buy'], $this->character);
  }
}


?>
